import request from '@/utils/request'

// 查询流量充值历史列表
export function listFlowChargeHistory(query) {
  return request({
    url: '/proxy/flowChargeHistory/list',
    method: 'get',
    params: query
  })
}

// 查询流量充值历史详细
export function getFlowChargeHistory(id) {
  return request({
    url: '/proxy/flowChargeHistory/' + id,
    method: 'get'
  })
}

// 新增流量充值历史
export function addFlowChargeHistory(data) {
  return request({
    url: '/proxy/flowChargeHistory',
    method: 'post',
    data: data
  })
}

// 修改流量充值历史
export function updateFlowChargeHistory(data) {
  return request({
    url: '/proxy/flowChargeHistory',
    method: 'put',
    data: data
  })
}

// 删除流量充值历史
export function delFlowChargeHistory(id) {
  return request({
    url: '/proxy/flowChargeHistory/' + id,
    method: 'delete'
  })
}
